package com.cold.demo.jsoup.zhihu;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;


public class ZhiHu {
    private static final String baseUrl = "https://www.zhihu.com";

    public static void main(String[] args) throws Exception {
        // 获取并解析 robots.txt
//        Connection robotsConnection = Jsoup.connect(baseUrl + "/robots.txt");
//        robotsConnection.headers(HeaderResolve.getHeaders());
//        robotsConnection.timeout(5_000);
//        Document robots = robotsConnection.get();
//        System.out.println(robots);

        System.out.println((char)10);
        System.out.println((char)58);
        // 设置 User-agent
    }
}
